package com.itita.ww2.model.item;

import com.itita.ww2.model.item.enums.ItemBlueprintType;
import com.itita.ww2.model.item.enums.param1.P1BlueprintType;

public class ItemBlueprint extends AbstractItem {
	private final ItemBlueprintType blueprintType;
	private final P1BlueprintType p1Type;
	private final int effValue;

	public ItemBlueprint(String itemId, int param1, int param2, boolean useable, int effParam, int effValue,
			boolean compositable) {
		super(itemId, param1, param2, useable, effParam);
		this.blueprintType = ItemBlueprintType.idValueOf(itemId);
		this.p1Type = P1BlueprintType.values()[param1];
		this.effValue = effValue;
		this.compositable = compositable;
	}

	public int getEffValue() {
		return effValue;
	}

	public ItemBlueprintType getBlueprintType() {
		return blueprintType;
	}

	@Override
	public boolean canStack() {
		return true;
	}

	public P1BlueprintType getP1Type() {
		return p1Type;
	}
}
